


        var headSwp = new Swiper('.headSwp',{
            allowTouchMove:false,
            autoplay:{
                disableOnInteraction: false,
            },
            pagination: {
                el: '.swiper-pagination',
                clickable:true,
            },
            breakpoints:{
                1200:{
                    allowTouchMove:true,
                },
            }
        })

        var proSwp = new Swiper('.proSwp',{
            slidesPerView:5,
            speed:800,
            autoplay:{
                disableOnInteraction: false,
            },
            breakpoints:{
                1200:{
                    slidesPerView:4
                },
                1024:{
                    slidesPerView:3
                },
                767:{
                    slidesPerView:2
                },
                480:{
                    slidesPerView:1
                }
            }
        })

        $(document).ready(function(){
            $('main .banner .btn').click(function(){
                if($(this)[0].className.indexOf('prev') >= 0){
                    if($('main .headSwp .swiper-slide:first-child')[0].className.indexOf('active') >= 0){
                        headSwp.slideTo($('main .headSwp .swiper-slide').length - 1);
                    }else{
                        headSwp.slidePrev();
                    }
                }else{
                    if($('main .headSwp .swiper-slide:last-child')[0].className.indexOf('active') >= 0){
                        headSwp.slideTo(0);
                    }else{
                        headSwp.slideNext();
                    }
                    
                }
            })

            $('main .product .btn').click(function(){
                if($(this)[0].className.indexOf('prev') >= 0){
                    if($('main .proSwp .swiper-slide:first-child')[0].className.indexOf('active') >= 0){
                        proSwp.slideTo($('main .proSwp .swiper-slide').length - 1);
                    }else{
                        proSwp.slidePrev();
                    }
                }else{
                    if($('main .proSwp .swiper-slide:last-child')[0].className.indexOf('active') >= 0){
                        proSwp.slideTo(0);
                    }else{
                        proSwp.slideNext();
                    }
                    
                }
            })
        })